# Begin: Custom commands for incoming e-mails BEFORE decryption log(1,'Begin: Custom commands for incoming e-mails BEFORE decryption'); # Begin: Special processing for EDIFACT log(1,'Begin: Special processing for EDIFACT'); if (rmatch('$edifact_mailbox_regex')) { if (!compareattr('SENDER','equal','<>')) { setvar('direction','inbound'); $EDIFACT_address_check; $EDIFACT_file_type_check; $EDIFACT_subject_check; $EDIFACT_encryption_check; $EDIFACT_signature_check; if(flag('drop',0)) { setvar('result','F A I L E D'); notify('$clearing_mailbox','EDIFACT_report_attachmail'); drop('553','Requested action not taken: $reason'); } else { setvar('signature_result','OK'); setvar('encryption_result','OK'); setvar('result',' O K '); notify('$clearing_mailbox','EDIFACT_report'); deliver(); } } } log(1,'End: Special processing for EDIFACT'); # End: Special processing for EDIFACT log(1,'End: Custom commands for incoming e-mails BEFORE decryption'); # End: Custom commands for incoming e-mails BEFORE decryption